using UnityEngine;

public class PrizeHeader : MonoBehaviour
{
	public UILabel prizeName;

	public UILabel prizeRewards;

	public UISprite background;

	public void Init(string name, int coins, int cash, Color activeColor)
	{
		UITools.ChangeText(prizeName, name);
		string text = GGFormat.FormatWinnings(coins) + " coins, ";
		text = text + GGFormat.FormatWinnings(cash) + " cash";
		UITools.ChangeText(prizeRewards, text);
		base.gameObject.SetActive(true);
		if (background != null)
		{
			background.color = activeColor;
		}
	}
}
